﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace SampleWpfApplication
{
    public enum MaritalStatus : byte
    {
        Single,
        Maried
    }

    public struct FullName
    {
        public string FirstName;
        public string LastName;
        public string MiddleName;
        string protectedField;
    }

    public class Person
    {
        public Person()
        {
        }

        public Person(string firstName, string lastName)
        {
            FirstName = firstName;
            LastName = lastName;
        }

        public Person(string firstname, string lastname, DateTime birthday)
        {
            FirstName = firstname;
            LastName = lastname;
            Birthday = birthday;
        }
        public Person(string firstName, string lastName, MaritalStatus status)
        {
            FirstName = firstName;
            LastName = lastName;
            Status = status;
        }
        public Person(FullName name, MaritalStatus status, DateTime birthday, int workExperience)
        {
            Birthday = birthday;
            Status = status;
            FirstName = name.FirstName;
            LastName = name.LastName;
        }

        public string FirstName { get; set; }
        public string LastName { get; set; }

        public MaritalStatus Status
        {
            get;
            set;
        }

        public DateTime Birthday
        {
            get;
            set;
        }
    }
}
